import 'dart:convert';

import 'package:largefriends/entity/json/json_parse_utils.dart';

class TwoFactorEntity {
  TwoFactorEntity({
    this.twoFactorKey,
  });

  factory TwoFactorEntity.fromJson(Map<String, dynamic> jsonRes) =>
      TwoFactorEntity(
        twoFactorKey: jsonRes.asString('twoFactorKey'),
      );

  String? twoFactorKey;

  @override
  String toString() {
    return jsonEncode(this);
  }

  Map<String, dynamic> toJson() => <String, dynamic>{
        'twoFactorKey': twoFactorKey,
      };
}
